package constant;

/**
 * Created with IntelliJ IDEA.
 * Description：定义常量
 *
 * @author: zxj
 * @date: 2024-09-18
 * @time: 14:24:58
 */
public class Constants {
    // 工厂配置参数
    public final static String HOST = "192.168.10.129";
    public final static Integer PORT = 5672;
    public final static String VIRTUAL_HOST = "study";
    public final static String USERNAME = "admin";
    public final static String PASSWORD = "admin";


    // 演示配置参数

    // 简单模式
    public final static String SIMPLE_QUEUE_NAME = "simple.queue";

    // 工作模式
    public final static String WORK_QUEUE_NAME = "work.queue";

    // 发布订阅模式, fanout
    public final static String FANOUT_QUEUE1 = "fanout.queue1";
    public final static String FANOUT_QUEUE2 = "fanout.queue2";
    public final static String FANOUT_EXCHANGE = "fanout.exchange";

    // direct
    public final static String DIRECT_QUEUE1 = "direct.queue1";
    public final static String DIRECT_QUEUE2 = "direct.queue2";
    public final static String DIRECT_EXCHANGE = "direct.exchange";

    // topics
    public final static String TOPICS_QUEUE1 = "topics.queue1";
    public final static String TOPICS_QUEUE2 = "topics.queue2";
    public final static String TOPICS_EXCHANGE = "topics.exchange";

    // rpc
    public final static String RPC_REQUEST_QUEUE_NAME = "rpc.request.queue";

    // confirm
    public final static String CONFIRM_QUEUE_NAME1 = "confirm.queue1";
    public final static String CONFIRM_QUEUE_NAME2 = "confirm.queue2";
    public final static String CONFIRM_QUEUE_NAME3 = "confirm.queue3";
}

